package com.cqjtu.store.swiper.mapper;

import com.cqjtu.store.swiper.pojo.dto.BaseRequest;
import com.cqjtu.store.swiper.pojo.dto.SwiperDTO;
import com.cqjtu.store.swiper.pojo.entity.Swiper;
import com.cqjtu.store.swiper.pojo.vo.SwiperVO;
import com.cqjtu.store.user.pojo.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SwiperMapper {

    int saveAvatar(Swiper swiper);

    List<SwiperVO> listByCondition(BaseRequest pageRequest);

    Swiper getById(Integer id);

    Integer update(SwiperDTO swiperDTO);

    Integer     delete(Integer id);

    List<Swiper> getList(int count);
}
